<!DOCTYPE >
<html>
<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>订单列表</title>
<link rel="stylesheet" type="text/css" href="__PUBLIC__/home/css/right.css">
<script type="text/javascript" src="__PUBLIC__/home/js/jquery.js"></script>
<script type="text/javascript" src="__PUBLIC__/home/js/system.js"></script>
<script type="text/javascript" src="__PUBLIC__/home/js/admin.js"></script>
</head>
<body style="overflow: auto;">
	<div class="basic bor">
			<div class="title fl">当前位置：商城管理 > 订单列表</div>
			<div class="basic_r fr"><a href="{:U('Index/setting')}">基本信息</a></div>
	</div>

<style type="text/css">
  .catelistS{
    background-color: #EFEFEF;
  }
</style>
<!-- 文章分类列表 -->
<div class="catelist">
    <div class="lists listsov">
    <dd><a href="{:U('Goods/orderlist')}">全部订单</a></dd>
        <ul style="left:0">
            <li><a href="{:U('Goods/orderlist',array('id'=>10))}"  <if condition="$_GET['id'] eq 10 ">class="catelistS"</if> >待付款</a>
            <li><a href="{:U('Goods/orderlist',array('id'=>20))}"  <if condition="$_GET['id'] eq 20 ">class="catelistS"</if> >已付款</a>
            <li><a href="{:U('Goods/orderlist',array('id'=>30))}"  <if condition="$_GET['id'] eq 30 ">class="catelistS"</if> >已发货</a>
            <li><a href="{:U('Goods/orderlist',array('id'=>40))}"  <if condition="$_GET['id'] eq 40 ">class="catelistS"</if> >已收货</a>
        </ul>

    </div>

</div>
<!-- /文章分类列表 -->

<table border="1"  class="table table-hover text-center" id='list'>
  <tr class="trcolor">
    <td>选择</td>
   	<td>用户名称</td>
	  <td>订单名称</td>
    <td>下单时间</td>
    <td>付款情况</td>
    <td colspan="2">操作</td>
  </tr>

<!-- ============================================================= -->
<volist name="list" id="li">
  <tr>
    <td><span class="addname"><input class="checkbox bor" name="fruit" type="checkbox" value="{$li.id}" /></span></td>
    <td><span class="addname">{$name.$li[buyer_id]}</span></td>
    <td class="color444 textleft_lover"><span class="addname"><?php echo mb_substr($li[goods_name],0,30,'utf-8');
?> </span></td>
    <td class="color12"> <span class="addname"><?php echo  date("Y年m月d日 H时m分d秒",$li[ctime]); ?></span></td>
    <td class="color12"><span class="addname">
     <if condition="$li['order_state'] eq '10' ">
        <span style="color: #f00">待付款</span>
     <elseif condition="$li['order_state'] eq '20'"/>
        待发货
     <elseif condition="$li['order_state'] eq '30'"/>
        待收货
     <elseif condition="$li['order_state'] eq '40'"/>
        交易成功
        <else />
        非法状态
    </if>
    </span></td>
    <td><span class="addname"><a href="{:U('Goods/orderview',array('id'=>$li[id]))}">查看</a></span></td>
    <td><span class="addname"><a href="{:U('Goods/delorder',array('id'=>$li[id]))}"  onclick="return confirm('确定将此记录删除?')" >删除</a></span></td>
  </tr>
</volist>

<!-- ============================================================= -->
</table>
<div class="pages">
   <span class="allxz fl"><input class="checkbox bor" id="all"  type="checkbox" value="3" /></span>
   <div class="deladd fl"><a href="javascript:;" class="alllist" >全选</a><a href="javascript:;" class="color08bcbb" onclick="dellists('store_goods_order')"  onclick="return confirm('确定将此记录删除?')"  >删除所选</a></div><!-- system.js -->
    <div class="page_s fr">{$page}</div>
</div>
<!-- 提示 -->
<p class="ts"><span class="colorf00">*</span><span class="ts_text"> 如果要修排序请直接点击文字修改。</span></p>
</body>
</html>
